package com.zstu.mall.service;

import com.zstu.mall.common.BaseService;
import com.zstu.mall.entity.User;
import com.zstu.mall.dao.UserDao;

import java.util.List;

/**
 * @author     : wuyc
 * @description: UserService
 * @date       : Created in 2019/11/24
 */
public interface UserService extends BaseService<User, String, UserDao>  {

    /**
     * 根据用户名查询
     * @param name
     * @return
     */
    List<User> findByName(String name);

    /**
     * 检查登录
     * @param username
     * @param password
     * @return
     */
    User checkLogin(String username,String password);

    /**
     * 校验支付密码
     * @param username
     * @param payPassword
     * @return
     */
    User checkPay(String username,String payPassword);

}
